{template common/contentheader}
<div class="setcontent">
	<div class="settitle">
		<h3>{lang admin_dz_forum:admin}</h3>
	</div>
	{template common/info}
	<div class="setform">
		<form class="pzform" action="{url admin/dzforum?act=save}" method="post">
			 
			<div class="formgroup">
				<label class="formlabel">{lang dzforum_open:admin}:</label>
				<div class="formcontrol">
					<input type="radio" name="open" value="1" {if $setting['open']=='1'}checked{/if}>{lang yes:admin}</input>
              		<input type="radio" name="open" value="0" {if $setting['open']=='0'}checked{/if}>{lang no:admin}</input>
				</div>
				<span class="formhelp">{lang dzforum_open:admin}</span>
			</div> 
			
			<div class="formgroup">
				<label class="formlabel">{lang database_host:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="hostname" value="$setting['hostname']" >
				</div>
				<span class="formhelp">{lang database_host:admin}</span>
			</div> 
			
			<div class="formgroup">
				<label class="formlabel">{lang database_name:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="database" value="$setting['database']" >
				</div>
				<span class="formhelp">{lang database_name:admin}</span>
			</div> 
			
			<div class="formgroup">
				<label class="formlabel">{lang database_pre:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="dbprefix" value="$setting['dbprefix']" >
				</div>
				<span class="formhelp">{lang database_pre:admin}</span>
			</div> 
			
			<div class="formgroup">
				<label class="formlabel">{lang database_username:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="username" value="$setting['username']" >
				</div>
				<span class="formhelp">{lang database_username:admin}</span>
			</div> 
			
			<div class="formgroup">
				<label class="formlabel">{lang database_password:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="password" value="$setting['password']" >
				</div>
				<span class="formhelp">{lang database_password:admin}</span>
			</div> 
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang save:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}